package com.xuanyuan.analysis

import android.app.Application
import android.os.Environment
import android.os.Environment.getExternalStoragePublicDirectory
import android.util.Log
import com.xuanyuan.base.utils.MMKVUtils

/**
 * Copyright (C), 2017-2022, Anker
 * FileName: MyApplication
 * @author ken.luo
 * Date: 2022/10/5 21:39
 * Description: Application 实现类
 * History:
 * 创建者 : ken.luo
 * <author>     <time>     <version>      <desc>
 * 作者姓名      修改时间      版本号          描述
 */
class MyApplication: Application() {
    override fun onCreate() {
        super.onCreate()
//        MMKVUtils.init(this)


      val dir=  getExternalStoragePublicDirectory(Environment.DIRECTORY_DCIM)
        Log.i("1111111", "dir: $dir")
        MMKVUtils.init(dir.absolutePath)

    }

}
